package com.iphanta.community.tags.mapper;

import com.iphanta.community.tags.entity.TagDimension;
import com.iphanta.community.tags.entity.TagItem;

import java.util.List;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 4/20/22 10:40 AM
 */
public interface TagItemMapper {

    int insert(TagItem item);

    TagItem selectOne(String code);

    List<TagItem> selectByParent(String parentCode);

    List<TagItem> selectByType(Integer type);

    List<TagItem> select(String keyword);

    List<TagDimension> selectTagDimension();

    TagDimension selectOneDimension(String code);

    int modify(TagItem item);

}
